#pragma once

class TConnectionManager;

class TConnectionHandler {
public:
    TConnectionHandler(TConnectionManager& connections)
    : Connections(connections)
    {}

    static void* Run(void* self);

    void Loop();
    virtual void Handle(int connectionId) = 0;

    virtual ~TConnectionHandler()
    {}

protected:
    TConnectionManager&  Connections;
};
